package com.h3c.ptability.dto;

import java.util.Date;
import java.sql.Blob;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtMsgTemplateDTO
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_msg_template dto实体
 * Version: 1.0
 */
@ApiModel(value="PtMsgTemplate对象", description="")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PtMsgTemplateDTO {


    @ApiModelProperty(value = "消息模板ID")
    private String msgTemplateId;

    @ApiModelProperty(value = "应用ID")
    private String appId;

    @ApiModelProperty(value = "消息模板编码")
    private String msgTemplateCode;

    @ApiModelProperty(value = "消息模板名称")
    private String msgTemplateName;

    @ApiModelProperty(value = "模板类型：1 邮件模板；2 短信模板；3 企微消息模板；")
    private Integer msgTemplateType;

    @ApiModelProperty(value = "邮件标题")
    private String msgTemplateTitle;

    @ApiModelProperty(value = "邮件内容")
    private String msgTemplateContent;

    @ApiModelProperty(value = "创建人姓名/工号")
    private String creatorInfo;

    @ApiModelProperty(value = "更新人姓名/工号")
    private String updatorInfo;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "模板图片")
    private Blob emailTemplateContentPic;

    /**
     *  是否为系统邮件 1 是；0不是
     */
    private Integer systemEmail;

    /**
     * 排序字段 + 升序， -降序
     * 比如 +updateTime 根据 修改时间升序排序，-updateTime 根据 修改时间降序排序
     */
    private String orderBy;

}
